<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class AuthGroup extends Model
{
    protected $table = 'sp_other_auth_group';
    protected $primaryKey = 'id';
    public $timestamps = false;

    //type菜单类型1.管理后台2供应商后台
    const AUTH_GROUP_TYPE_PLATFORM = 1;//管理后台
    const AUTH_GROUP_TYPE_SHOPER = 2;//供应商后台

    protected function GetOneAuthGroup($where)
    {
        $data = $this
            ->where($where)
            ->first();
        $data = $data ? $data->toArray() : array();
        return $data;
    }

}
